package com.alm.token.ui.data.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.alm.token.base.BaseAdapter;

import java.io.Serializable;
import java.util.List;

/**
 * Created by en on 2019/1/2.
 */

public class UserWalletData {

    /**
     * msg : 操作成功
     * status : 0
     * data : {"totalMoney":8016481.1625,"wallets":[{"id":1,"name":"ETH","engName":"Ethereum","logo":null,"price":88.37,"money":90507.1547,"totalMoney":7998117.2608,"createTime":1545892607000,"updateTime":1545892608000},{"id":2,"name":"G12","engName":"G12","logo":null,"price":0.2029,"money":90507.1547,"totalMoney":18363.9017,"createTime":1545892609000,"updateTime":1545892610000}],"totalGetMoney":0,"totalGetYesterdayMoney":0,"noReadCount":0,"sysMsg":[{"id":2,"userId":101,"title":"testsetests","content":"afasdfasfasdfasffsdfasdfasdfsaf","status":2,"createTime":1546069892000,"readTime":null,"updateTime":null,"msgType":2,"endTime":null,"isDel":0}]}
     * success : true
     * total : null
     */

    private String msg;
    private int status;
    private DataBean data;
    private boolean success;
    private Object total;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getTotal() {
        return total;
    }

    public void setTotal(Object total) {
        this.total = total;
    }

    public static class DataBean implements Parcelable {
        /**
         *  "totalMoneyKua":23424, // 跨币列表资产
         * totalMoney : 8016481.1625
         * wallets : [{"id":1,"name":"ETH","engName":"Ethereum","logo":null,"price":88.37,"money":90507.1547,"totalMoney":7998117.2608,"createTime":1545892607000,"updateTime":1545892608000},{"id":2,"name":"G12","engName":"G12","logo":null,"price":0.2029,"money":90507.1547,"totalMoney":18363.9017,"createTime":1545892609000,"updateTime":1545892610000}]
         * totalGetMoney : 0
         * totalGetYesterdayMoney : 0
         * noReadCount : 0
         * sysMsg : [{"id":2,"userId":101,"title":"testsetests","content":"afasdfasfasdfasffsdfasdfasdfsaf","status":2,"createTime":1546069892000,"readTime":null,"updateTime":null,"msgType":2,"endTime":null,"isDel":0}]
         */

        private double totalMoneyKua;
        private String totalMoney;
        private Double totalGetMoney;
        private Double totalGetYesterdayMoney;
        private int noReadCount;
        private List<WalletsBean> wallets;
        private List<SysMsgBean> sysMsg;
        private List<UserMsgBean> userMsg;
        private List<MiningWalletBean> miningWallet;

        public double getTotalMoneyKua() {
            return totalMoneyKua;
        }

        public void setTotalMoneyKua(double totalMoneyKua) {
            this.totalMoneyKua = totalMoneyKua;
        }

        public String getTotalMoney() {
            return totalMoney;
        }

        public void setTotalMoney(String totalMoney) {
            this.totalMoney = totalMoney;
        }

        public Double getTotalGetMoney() {
            return totalGetMoney;
        }

        public void setTotalGetMoney(Double totalGetMoney) {
            this.totalGetMoney = totalGetMoney;
        }

        public Double getTotalGetYesterdayMoney() {
            return totalGetYesterdayMoney;
        }

        public void setTotalGetYesterdayMoney(Double totalGetYesterdayMoney) {
            this.totalGetYesterdayMoney = totalGetYesterdayMoney;
        }

        public int getNoReadCount() {
            return noReadCount;
        }

        public void setNoReadCount(int noReadCount) {
            this.noReadCount = noReadCount;
        }

        public List<WalletsBean> getWallets() {
            return wallets;
        }

        public void setWallets(List<WalletsBean> wallets) {
            this.wallets = wallets;
        }

        public List<SysMsgBean> getSysMsg() {
            return sysMsg;
        }

        public void setSysMsg(List<SysMsgBean> sysMsg) {
            this.sysMsg = sysMsg;
        }

        public List<UserMsgBean> getUserMsg() {
            return userMsg;
        }

        public void setUserMsg(List<UserMsgBean> userMsg) {
            this.userMsg = userMsg;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {

        }

        public List<MiningWalletBean> getMiningWallet() {
            return miningWallet;
        }

        public void setMiningWallet(List<MiningWalletBean> miningWallet) {
            this.miningWallet = miningWallet;
        }

        public static class WalletsBean extends BaseAdapter.BaseItem {
            /**
             * id : 1
             * name : ETH
             * engName : Ethereum
             * logo : null
             * price : 88.37
             * money : 90507.1547
             * totalMoney : 7998117.2608
             * createTime : 1545892607000
             * updateTime : 1545892608000
             */

            private int id;
            private String name;
            private String engName;
            private Object logo;
            private double price;
            private double money;
            private double totalMoney;
            private long createTime;
            private long updateTime;
            private int type;

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }
            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getEngName() {
                return engName;
            }

            public void setEngName(String engName) {
                this.engName = engName;
            }

            public Object getLogo() {
                return logo;
            }

            public void setLogo(Object logo) {
                this.logo = logo;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public double getMoney() {
                return money;
            }

            public void setMoney(double money) {
                this.money = money;
            }

            public double getTotalMoney() {
                return totalMoney;
            }

            public void setTotalMoney(double totalMoney) {
                this.totalMoney = totalMoney;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }

        public static class SysMsgBean implements Serializable {


            /**
             * "upStartTime": 1546876800000,
             * "upEndTime": 1546963199000,
             * "upStartTimeStr": null,
             * "upEndTimeStr": null
             */

            private int id;
            private int userId;
            private int needUp;
            private String title;
            private String content;
            private int status;
            private long createTime;
            private long readTime;
            private long updateTime;
            private int msgType;
            private long endTime;
            private int isDel;
            private long upStartTime;
            private long upEndTime;
            private String upStartTimeStr;
            private String upEndTimeStr;

            public long getUpStartTime() {
                return upStartTime;
            }

            public void setUpStartTime(long upStartTime) {
                this.upStartTime = upStartTime;
            }

            public long getUpEndTime() {
                return upEndTime;
            }

            public void setUpEndTime(long upEndTime) {
                this.upEndTime = upEndTime;
            }

            public String getUpStartTimeStr() {
                return upStartTimeStr;
            }

            public void setUpStartTimeStr(String upStartTimeStr) {
                this.upStartTimeStr = upStartTimeStr;
            }

            public String getUpEndTimeStr() {
                return upEndTimeStr;
            }

            public void setUpEndTimeStr(String upEndTimeStr) {
                this.upEndTimeStr = upEndTimeStr;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public int getNeedUp() {
                return needUp;
            }

            public void setNeedUp(int needUp) {
                this.needUp = needUp;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getReadTime() {
                return readTime;
            }

            public void setReadTime(long readTime) {
                this.readTime = readTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            public int getMsgType() {
                return msgType;
            }

            public void setMsgType(int msgType) {
                this.msgType = msgType;
            }

            public long getEndTime() {
                return endTime;
            }

            public void setEndTime(long endTime) {
                this.endTime = endTime;
            }

            public int getIsDel() {
                return isDel;
            }

            public void setIsDel(int isDel) {
                this.isDel = isDel;
            }
        }


        public static class UserMsgBean implements Serializable {


            /**
             * id : 1
             * userId : 2011
             * title : 糖果
             * content : 恭喜获得zuoqi168派发0.4306糖果
             * status : 1
             * createTime : 1553585537000
             * readTime : null
             * updateTime : null
             * enTitle : candy
             * enContent : Congratulations on getting zuoqi168 to distribute 0.4306 candies
             */

            private int id;
            private int userId;
            private String title;
            private String content;
            private int status;
            private long createTime;
            private long readTime;
            private long updateTime;
            private String enTitle;
            private String enContent;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public long getReadTime() {
                return readTime;
            }

            public void setReadTime(long readTime) {
                this.readTime = readTime;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            public String getEnTitle() {
                return enTitle;
            }

            public void setEnTitle(String enTitle) {
                this.enTitle = enTitle;
            }

            public String getEnContent() {
                return enContent;
            }

            public void setEnContent(String enContent) {
                this.enContent = enContent;
            }
        }

        public static class MiningWalletBean  {
            /**
             * name : mbtc
             * id : 3
             * icon : https://api.iotoken.net/static/images/usdt.png
             * money : 0.00
             * minDraw : 0.01
             * pro : 1
             * toTypeName : USDT
             * toTypeIcon : https://api.iotoken.net/ static/images/usdt.png
             * toTypePrice : 9751.00
             */

            private String name;
            private int id;
            private String icon;
            private double money;
            private String minDraw;
            private String pro;
            private String toTypeName;
            private String toTypeIcon;
            private double toTypePrice;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public double getMoney() {
                return money;
            }

            public void setMoney(double money) {
                this.money = money;
            }

            public String getMinDraw() {
                return minDraw;
            }

            public void setMinDraw(String minDraw) {
                this.minDraw = minDraw;
            }

            public String getPro() {
                return pro;
            }

            public void setPro(String pro) {
                this.pro = pro;
            }

            public String getToTypeName() {
                return toTypeName;
            }

            public void setToTypeName(String toTypeName) {
                this.toTypeName = toTypeName;
            }

            public String getToTypeIcon() {
                return toTypeIcon;
            }

            public void setToTypeIcon(String toTypeIcon) {
                this.toTypeIcon = toTypeIcon;
            }

            public double getToTypePrice() {
                return toTypePrice;
            }

            public void setToTypePrice(double toTypePrice) {
                this.toTypePrice = toTypePrice;
            }
        }
    }
}
